<template>
	<view class="content">
		<u-navbar leftIcon="" leftIconSize="0px">
			<slot>
				<image src="https://cdn.zkjialan.com/img1/logo.png" class="logo"></image>
			</slot>
		</u-navbar>
		<swiper class="swiperBox" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index"
				@click="jump(item.uri_type,item.uri)">
				<image :src="item.img_url" class="swiperImg" />
			</swiper-item>
		</swiper>
		<!-- 菜单 -->
		<view class="menuBox">
			<view class="menuItem" @click="$navto.navto('/course/zhuanjia/zhuanjia')" v-if="is_open">
				<image :src="baseUrl+'menu1.png'" class="menuIcon" />
				<text class="menuLabel">导师专家</text>
			</view>
			<view class="menuItem" @click="$navto.navto('/course/info/info',{id:coursePackage[0].id})">
				<image :src="baseUrl+'menu2.png'" class="menuIcon" />
				<text class="menuLabel">热门课程</text>
			</view>
			<view class="menuItem" @click="$navto.navto('/course/videohealth/videohealth')" v-if="is_open">
				<image :src="baseUrl+'menu3.png'" class="menuIcon" />
				<text class="menuLabel">健康视频</text>
			</view>
			<view class="menuItem" @click="$navto.navto('/course/training_camp/training_camp')">
				<image :src="baseUrl+'menu4.png'" class="menuIcon" />
				<text class="menuLabel">训练营</text>
			</view>
		</view>

		<!-- 公益讲座 -->
		<view class="benefitBox">
			<view class="ename">BENEFIT COURSES</view>
			<view class="name">公益讲座</view>

			<view class="line"></view>
			<swiper class="selectedCoursesList" @change="changegyswipe" :autoplay="true" :interval="3000">
				<swiper-item class="tutorSwiper-item" v-for="(item,index) in gybannerSwiper.info" :key="index"
					@click="jump(item.uri_type,item.uri)">
					<view class="selectedCoursesItem">
						<image :src="item.img_url" class="selectedCover"></image>
						<view class="tips" v-if="item.uri_type==3"> {{item.status_text}}</view>
					</view>
				</swiper-item>
			</swiper>
		</view>

		<!-- 热门课程 -->
		<view class="popularCoursesBox">
			<view class="ename">POPULAR COURSES</view>
			<view class="name">热门课程</view>

			<text class="more" @click="$navto.navto('/course/popular/popular')">MORE ></text>
			<view class="line"></view>
			<view class="popularCoursesList">
				<view class="popularCoursesItem" v-for="(item,index) in popularCourses.slice(0,4)" :key="index"
					@click="$navto.navto('/course/info/info',{id:item.id})">
					<image :src="item.cover" class="popularCover"></image>
					<image :src="baseUrl+'tuwen.png'" class="popularType" v-if="item.type=='图文'"></image>
					<image :src="baseUrl+'video.png'" class="popularType" v-else-if="item.type=='视频'"></image>
					<image :src="baseUrl+'voice.png'" class="popularType" v-else-if="item.type=='音频'"></image>
					<image :src="baseUrl+'zhuanlan.png'" class="popularType" v-else-if="item.type=='专栏'"></image>
					<image :src="baseUrl+'orderIcon.png'" class="popularType"
						v-else-if="item.type=='直播' &&item.state==1"></image>
					<image :src="baseUrl+'livingIcon.png'" class="popularType"
						v-else-if="item.type=='直播' &&item.state==2"></image>
					<image :src="baseUrl+'end.png'" class="popularType" v-else-if="item.type=='直播'&&item.state==3">
					</image>
					<text class="popularTitle">{{item.name}}</text>
					<view class="popularNumBox">
						<image :src="baseUrl+'arrow.png'" class="arrowIcon"></image>
						<text class="peopleLabel">{{item.study_num}}人在学习</text>
						<text class="line1"></text>
						<image :src="baseUrl+'time.png'" class="timeIcon"></image>
						<text class="popularTotal">共{{item.catalogue_count}}讲</text>
					</view>
					<text class="popularPrice" v-if="item.sell_price>0">￥{{item.sell_price}}</text>
					<text class="popularPrice" v-else>免费</text>
					<view class="learnBtn" v-if="item.type!='直播'">立即学习</view>
					<view class="learnBtn" v-else-if="item.type=='直播'&&item.state==1">了解课程</view>
					<view class="learnBtn" v-else-if="item.type=='直播'&&item.state==2">立即学习</view>
					<view class="endBtn" v-else-if="item.type=='直播'&&item.state==3">已结束</view>
				</view>
			</view>
		</view>

		<!-- 导师专区 -->
		<view class="tutorZoneBox" v-if="is_open">
			<view class="ename">TUTOR ZONE</view>
			<view class="name">导师专区</view>

			<text class="more" @click="$navto.navto('/course/zhuanjia/zhuanjia')">MORE ></text>
			<view class="line"></view>
			<uni-swiper-dot :info="expertSwiper.info" :current="expertSwiper.current" :mode="expertSwiper.mode"
				:dots-styles="expertSwiper.dotsStyles">
				<swiper class="tutorSwiperBox" @change="changeexpertSwiper" next-margin="35rpx" :autoplay="true"
					:interval="3000">
					<swiper-item class="tutorSwiper-item" v-for="(item,index) in expertSwiper.info" :key="index"
						@click="$navto.navto('/course/expert/expert',{id:item.id})">
						<view class="tutorItemImg" :style="{'backgroundImage':'url('+item.category.bgimg +')'}">
							<image :src="item.avatar" class="square-avatar" mode="widthFix"></image>
							<view class="pink-bar"> <text class="bar-text">{{item.name}}</text></view>
						</view>
					</swiper-item>
				</swiper>
			</uni-swiper-dot>
		</view>

		<!-- 精选视频 -->
		<view class="healthvideoBox" v-if="is_open">
			<view class="ename">HEALTH VIDEOS</view>
			<view class="name">精选视频</view>

			<view class="line"></view>
			<view class="category-search-container">
				<view class="normal-state" v-if="!isSearching">
					<scroll-view class="category-scroll" scroll-x>
						<view v-for="(category, index) in categories" :key="category.id" class="category-tag"
							:class="{ active: activeIndex === index }" @click="selectCategory(index,category.id)">
							{{ category.name }}
						</view>
					</scroll-view>
					<view class="search-box" @click="startSearch">
						<text>搜索</text>
						<uni-icons type="search" size="16"></uni-icons>
					</view>
				</view>
				<view class="search-state" v-else>
					<view class="search-input-wrapper">
						<input class="search-input" v-model="searchText" placeholder-class="placeholder-class"
							placeholder="搜索您感兴趣的视频" focus @confirm="doSearch" />
						<view @click="toggleSearchIcon" class="icon-container">
							<uni-icons class="search-icon" v-if="!searchover" type="search" size="16"
								:color="showCloseIcon ? '#666' : '#999'"></uni-icons>
							<uni-icons class="search-icon" v-if="searchover" type="closeempty" size="16"
								:color="showCloseIcon ? '#666' : '#999'"></uni-icons>
						</view>
					</view>
				</view>
				<view class="content-area">
					<video-list v-if="!isSearching" :category-id="currentCategoryId" />
					<search-result v-else :keyword="searchText" />
				</view>
			</view>
			<swiper class="swiper-box" :indicator-dots="false" :display-multiple-items="1" :autoplay="true"
				:interval="3000" :duration="1000" @change="changevideoSwiper">
				<swiper-item v-for="(group, groupIndex) in videoSwiper.info" :key="groupIndex">
					<view class="item-group">
						<view class="row">
							<view v-for="(item, index) in group" :key="index" class="video-item"
								@click="$navto.navto('/course/videohealth/videohealth', {video_id: item.id})">
								<image :src="item.cover" class="cover-image" mode="aspectFill" />
								<view class="views-count" style="line-height: 100%;">
									<image style="width: 15px;" mode="widthFix"
										src="https://cdn.zkjialan.com/uploads/images/20250409/202504091547258c1ab5898.png">
									</image>
									<text class="views-text">{{ item.views }}</text>
								</view>
							</view>
							<view v-for="index in leftlength" :key="index" class="video-item">
							</view>
						</view>
					</view>
				</swiper-item>
			</swiper>
		</view>

		<!-- 训练营 -->
		<view class="benefitBox traning" style="margin-top: 20rpx;">
			<view class="ename">TRAINING CAMP</view>
			<view class="name">训练营</view>
			<view class="line"></view>
			<swiper class="selectedCoursesList" autoplay="true" :interval="3000">
				<swiper-item class="tutorSwiper-item" v-for="(item,index) in xlySwiper.info" :key="index"
					@click="checkLoginAndJump(item.uri_type,item.uri)">
					<view class="selectedCoursesItem">
						<image :src="item.img_url" class="selectedCover"></image>
						<view class="tips" v-if="item.uri_type==3"> {{item.status_text}}</view>
					</view>
				</swiper-item>
			</swiper>
		</view>

		<!-- 1对1 -->
		<view class="consultationBox">
			<view class="ename">1 ON 1 CONSULTATION</view>
			<view class="name">导师1对1健康咨询</view>
			<text class="line"></text>
			<image :src="baseUrl+'zixun.png'" class="consultationCover" @click="checkLoginAndOpenCuster()" />
		</view>
	</view>
</template>

<script>
	import {
		baseURL,
		basePath,
	} from '@/config/app'
	export default {
		data() {
			return {
				showPopup: false,
				inputValue: '',
				show: false,
				searchover: false,
				is_open: 0,
				categories: [],
				activeIndex: 0,
				isSearching: false,
				searchText: '',
				showCloseIcon: false,
				baseUrl: `https://cdn.zkjialan.com/img/course/`,
				banner: [],
				specialSwiper: {
					current: 0,
					mode: 'default',
					dotsStyles: {
						bottom: 10,
						border: '1px rgba(255, 255, 255, 1) solid',
						backgroundColor: 'grey',
						selectedBackgroundColor: '#f08329',
						selectedBorder: '1px rgba(255, 255, 255, 1) solid'
					},
					info: [],
				},
				xunlianying: {},
				expertSwiper: {
					current: 0,
					mode: 'default',
					dotsStyles: {
						bottom: 10,
						border: '1px rgba(255, 255, 255, 1) solid',
						backgroundColor: 'grey',
						selectedBackgroundColor: '#f08329',
						selectedBorder: '1px rgba(255, 255, 255, 1) solid'
					},
					info: [],
				},
				gybannerSwiper: {
					current: 0,
					mode: 'default',
					dotsStyles: {
						bottom: 10,
						border: '1px rgba(255, 255, 255, 1) solid',
						backgroundColor: 'grey',
						selectedBackgroundColor: '#f08329',
						selectedBorder: '1px rgba(255, 255, 255, 1) solid'
					},
					info: [],
				},
				xlySwiper: {
					current: 0,
					mode: 'default',
					dotsStyles: {
						bottom: 10,
						border: '1px rgba(255, 255, 255, 1) solid',
						backgroundColor: 'grey',
						selectedBackgroundColor: '#f08329',
						selectedBorder: '1px rgba(255, 255, 255, 1) solid'
					},
					info: [],
				},
				videoSwiper: {
					current: 0,
					mode: 'default',
					dotsStyles: {
						bottom: 10,
						border: '1px rgba(255, 255, 255, 1) solid',
						backgroundColor: 'grey',
						selectedBackgroundColor: '#f08329',
						selectedBorder: '1px rgba(255, 255, 255, 1) solid'
					},
					info: [],
				},
				configdata: {},
				popularCourses: [],
				liveCourses: [],
				publicLecture: [],
				coursePackage: [],
				leftlength: 0,
			}
		},
		computed: {
			currentCategoryId() {
				if (this.categories && this.categories.length > 0 && this.activeIndex >= 0 && this.activeIndex < this
					.categories.length) {
					return this.categories[this.activeIndex].id;
				}
				return null;
			}
		},
		onLoad() {
			this.$request.get(`course/shortvideo/getConfig`).then(res => {
				this.configdata = res.data.data
				this.is_open = this.configdata.is_open
			})
			//查询公益讲座
			this.$request.get(`course/course/lists?category_id=9`).then(res => {
				this.publicLecture = res.data.data.lists;
			})
			//查询课程套餐
			this.$request.get(`course/course/lists?stats=1`).then(res => {
				this.coursePackage = res.data.data.lists;
			})
			//查询轮播
			this.$request.get(`shopapi/home/slideshow_list?type=2`).then(res => {
				this.banner = res.data.data.lists;
			})
			//专题专区
			this.$request.get(`course/course/subject_list`).then(res => {
				this.specialSwiper.info = res.data.data.lists;
			})
			//热门课程
			this.$request.get(`course/course/hostLists`).then(res => {
				this.popularCourses = res.data.data.lists;
			})
			//导师专区
			this.$request.get(`course/shortvideo/expertList`).then(res => {
				this.expertSwiper.info = res.data.data.lists;
			})
			//健康视频分类
			this.$request.get(`course/shortvideo/getVideoCate`).then(res => {
				this.categories = res.data.data.lists;
			})
			//健康视频
			this.$request.get(`course/shortvideo/getlistWithCate`).then(res => {
				this.videoSwiper.info = res.data.data.lists;
				let length = res.data.data.lists.length
				let lastItem = res.data.data.lists[length - 1];
				this.leftlength = 6 - lastItem.length
			})
			//公益课堂
			this.$request.get(`shopapi/home/getBannerList`).then(res => {
				this.gybannerSwiper.info = res.data.data.lists;
			})
			// 获取训练营
			this.$request.get(`shopapi/home/getXunlianying`).then(res => {
				this.xlySwiper.info = res.data.data.lists;
			})
		},
		methods: {
			// 检查登录状态并跳转
			checkLoginAndNavto(path, params = {}) {
				if (!this.isLogin) {
					this.$Router.push('/pages/login/login');
					return;
				}
				this.$navto.navto(path, params);
			},
			
			// 检查登录状态并执行跳转
			checkLoginAndJump(type, id) {
				if (!this.isLogin) {
					this.$Router.push('/pages/login/login');
					return;
				}
				this.jump(type, id);
			},
			
			// 检查登录状态并打开客服
			checkLoginAndOpenCuster() {
				if (!this.isLogin) {
					this.$Router.push('/pages/login/login');
					return;
				}
				this.$openCuster();
			},
			
			selectCategory(index, id) {
				this.activeIndex = index
				this.$request.get(`course/shortvideo/getlistWithCate?category_id=` + id).then(res => {
					this.videoSwiper.info = res.data.data.lists;
				})
			},
			
			startSearch() {
				this.isSearching = true
				this.searchover = false
			},
			
			cancelSearch() {
				this.isSearching = false
				this.searchText = ''
				this.showCloseIcon = false
				this.searchover = true
			},
			
			doSearch() {
				this.activeIndex = 0
				if (this.searchText.trim()) {
				}
				this.$request.get(`course/shortvideo/getlistWithCate?name=` + this.searchText).then(res => {
					this.videoSwiper.info = res.data.data.lists;
				})
			},
			
			toggleSearchIcon() {
				if (this.searchover) {
					this.searchText = ''
					this.searchover = false
					this.isSearching = false
					this.showCloseIcon = false
					this.$request.get(`course/shortvideo/getlistWithCate`).then(res => {
						this.videoSwiper.info = res.data.data.lists;
					})
				} else {
					this.searchover = true
					this.doSearch()
				}
			},
			
			jump(type, id) {
				if (type == 1) { //商品
					this.$navto.navto('/pages/goods_detail/goods_detail', {
						id: id
					})
				}
				if (type == 2) { //课程
					this.$navto.navto('/course/info/info', {
						id: id
					})
				}
				if (type == 3) { //课程
					this.$navto.navto('/course/zhibo/zhibo', {
						live_url: id,
					})
					return
				}
				if (type == 4) { //虚拟商品
					this.$navto.navto('/course/training_camp/training_camp', {
						id: id
					})
				}
			},
			
			jump_goods_info(type, id) {
				if (type == 1) { //商品
					this.$navto.navto('/course/goods_info/goods_info', {
						id: id
					})
				}
				if (type == 2) { //课程
					this.$navto.navto('/course/info/info', {
						id: id
					})
				}
				if (type == 3) { //课程
					this.$navto.navto('/course/zhibo/zhibo', {
						live_url: id,
					})
					return
				}
				if (type == 4) { //虚拟商品
					this.$navto.navto('/course/training_camp/training_camp', {
						id: id
					})
				}
			},
			
			change(e) {
				this.specialSwiper.current = e.detail.current;
			},
			
			changeexpertSwiper(e) {
				this.expertSwiper.current = e.detail.current;
			},
			
			changegyswipe(e) {
				this.gybannerSwiper.current = e.detail.current;
			},
			
			changevideoSwiper(e) {
				this.videoSwiper.current = e.detail.current;
			},
			
			gozhibo(url) {
				if (!this.isLogin) {
					this.$Router.push('/pages/login/login');
					return;
				}
				this.$navto.navto('/course/zhibo/zhibo', {
					live_url: url,
				})
			}
		}
	}
</script>

<style>
	.traning {}

	/* 遮罩层 */
	.popup-mask {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 999;
	}

	/* 弹窗内容 */
	.popup-box {
		width: 80%;
		padding: 40rpx;
		background: white;
		border-radius: 16rpx;
		position: relative;
	}

	/* 关闭按钮 */
	.close-btn {
		position: absolute;
		right: 20rpx;
		top: 20rpx;
		font-size: 40rpx;
		color: #999;
	}

	/* 输入框 */
	.popup-input {
		width: 100%;
		height: 80rpx;
		border: 1px solid #eee;
		border-radius: 8rpx;
		padding: 0 20rpx;
		margin-top: 40rpx;
	}
</style>
<style scoped>
	.placeholder-class {
		font-size: 20rpx;
	}

	.category-search-container {
		margin-top: 70rpx;
		padding: 0rpx 30rpx;
		display: flex;
		flex-direction: column;
		font-size: 20rpx;
	}

	.normal-state {
		display: flex;
		align-items: center;
		height: 70rpx;
		padding-top: 10rpx;
	}

	.category-scroll {
		flex: 8;
		white-space: nowrap;
		height: 100%;
		overflow: hidden;
	}

	.category-tag {
		display: inline-block;
		padding: 0 30rpx;
		height: 60rpx;
		line-height: 60rpx;
		margin-right: 20rpx;
		border-radius: 30rpx;
		background: #f5f5f5;
		color: #666;
	}

	.category-tag.active {
		background: #ff9933;
		color: white;
	}

	.search-box {
		flex: 2;
		height: 60rpx;
		border: 1px solid #eee;
		border-radius: 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 26rpx;
		color: #999;
	}

	.search-state {
		display: flex;
		align-items: center;
		height: 70rpx;

	}

	.search-input-wrapper {
		flex: 1;
		position: relative;
	}

	.search-input {
		width: 100%;
		height: 60rpx;
		padding: 0 60rpx 0 20rpx;
		background: #f5f5f5;
		border-radius: 30rpx;
		box-sizing: border-box;
		font-size: 20rpx;
	}


	.icon-container {
		position: absolute;
		right: 10rpx;
		/* 调整位置 */
		top: 50%;
		transform: translateY(-50%);
		padding: 30rpx;
		/* 扩大点击区域 */
		z-index: 10;
	}

	.search-icon {
		/* 移除原来的定位样式 */
		display: block;
	}

	/* 	.search-icon {
		position: absolute;
		right: 20rpx;
		top: 50%;
		transform: translateY(-50%);
		padding: 10rpx;
	} */

	.search-close {
		width: 100rpx;
		text-align: center;
		color: #007AFF;
	}

	.content-area {
		margin-top: 30rpx;
	}
</style>

<style scoped>
	.swiper-box {
		height: 710rpx;
		/* 两行高度 */
		width: 100%;
		margin-top: 20rpx;
	}

	.item-group {
		width: 100%;
		height: 100%;
		padding: 0 40rpx;
	}

	.row {
		display: flex;
		justify-content: space-between;
		margin-bottom: 5rpx;
		flex-wrap: wrap;
	}

	.row.less-than-three {
		justify-content: flex-start;
		/* 改为左对齐 */
	}

	.video-item {
		width: calc((750rpx - 80rpx - 20rpx) / 3);
		position: relative;
	}

	.cover-image {
		width: 100%;
		height: 300rpx;
		border-radius: 8rpx;
	}

	.title {
		display: block;
		font-size: 24rpx;
		color: #333;
		margin-top: 10rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.views {
		font-size: 20rpx;
		color: #999;
	}
</style>
<style lang="scss" scoped>
	::v-deep .uni-swiper__dots-bar {
		height: 1px;
	}

	.views-count {
		position: absolute;
		bottom: 10px;
		left: 4px;
		// background-color: rgba(0, 0, 0, 0.6); 
		color: white;

		border-radius: 3px;
		font-size: 12px;
		/* 小号字体 */
		font-weight: bold;
		/* 加粗，更显眼 */
		opacity: 0.7;
		/* 在 .views-count 中添加 */
		justify-content: center;
		/* 水平居中 */

		display: flex;
		/* 启用 Flex 布局 */
		align-items: center;
		/* 垂直居中对齐 */
		padding: 4rpx 8rpx;
		/* 可选：添加内边距 */
		border-radius: 12rpx;

	}

	.views-text {
		font-size: 18rpx;
		/* 调整文字大小（根据需求） */
		color: white;
		/* 文字颜色 */
		// line-height: 1;
		margin-left: 5px;
		margin-top: 2px;
		/* 行高与图标高度匹配 */
	}

	.square-avatar {
		width: 100%;
		position: absolute;
		bottom: 0px;
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
	}

	.pink-bar {
		position: absolute;
		/* 绝对定位，基于父级正方形 */
		bottom: 0;
		/* 固定在底部 */
		left: 0;
		/* 左对齐 */
		width: 100%;
		/* 宽度和正方形一致 */
		height: 20%;
		/* 高度是正方形高度的20% */
		background-color: #ffeae9;
		/* 粉色，透明度为0.5 */
		display: flex;
		/* 使用flex布局 */
		align-items: center;
		/* 垂直居中 */
		justify-content: center;
		opacity: 0.9;
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
		/* 水平居中 */
	}

	/* 文字样式 */
	.bar-text {
		color: rgb(44, 44, 44);

		/* 文字颜色为黑色 */
		font-size: 14px;
		/* 字体大小 */
		text-align: center;
		/* 文字居中 */
		white-space: nowrap;
		/* 防止文字换行 */
	}

	.ename {
		padding: 0px 18px;
		font-size: 26px;
		font-weight: bold;
		// background-color: #d98847;
		border-left: 3px solid #e1a06c;
		// border-left-color:;
	}

	.name {
		padding: 0px 18px;
		font-size: 16px;
		font-weight: bold;
		border-left: 3px solid #e1a06c;
	}

	.line {
		width: 670rpx;
		height: 1rpx;
		background-color: #dcdcdc;
		margin-left: 40rpx;
		margin-top: 40rpx;
	}

	.consultationBox {
		position: relative;
		width: 100%;
		margin-top: 80rpx;
		margin-bottom: 130rpx;

		.consultationImg {
			width: 551rpx;
			height: 92rpx;
		}

		.consultationCover {
			width: 675rpx;
			height: 465rpx;
			margin-top: 70rpx;
			margin-left: 37rpx;
			border-radius: 15rpx;
		}
	}

	.xunlianBox {
		position: relative;
		width: 100%;
		margin-top: 130rpx;
		margin-bottom: 130rpx;

		.consultationImg {
			width: 551rpx;
			height: 92rpx;
		}

		.consultationCover {
			width: 100%;
			height: 368rpx;
			margin-top: 70rpx;
			margin-left: 37rpx;
			border-radius: 10rpx;
		}
	}

	.benefitBox {
		position: relative;
		width: 100%;
		margin-top: 100rpx;

		.selectedCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 40rpx;
			height: 450rpx;

			.selectedCoursesItem {
				position: relative;
				width: 676rpx;
				margin-bottom: 45rpx;
				height: 510rpx;
				margin-top: 30rpx;

				.tips {
					font-size: 10px;
					position: absolute;
					top: 0px;
					background-color: #ff9933;
					left: 0px;
					color: white;
					padding: 4px;
					border-bottom-right-radius: 8px;
					border-top-left-radius: 5px;
				}

				.selectedCover {
					width: 100%;
					height: 368rpx;
					border-radius: 10rpx;
				}

			}
		}
	}

	.healthvideoBox {
		position: relative;
		width: 100%;
		margin-top: 140rpx;

		.selectedCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 40rpx;
			height: 450rpx;

			.selectedCoursesItem {
				position: relative;
				width: 676rpx;
				margin-bottom: 45rpx;
				height: 510rpx;

				.tips {
					font-size: 10px;
					position: absolute;
					top: 0px;
					background-color: #ff9933;
					left: 0px;
					color: white;
					padding: 4px;
					border-bottom-right-radius: 8px;
					border-top-left-radius: 5px;
				}

				.selectedCover {
					width: 100%;
					height: 368rpx;
					border-radius: 10rpx;
				}

			}
		}
	}

	.trainingBox {
		position: relative;
		width: 100%;
		// margin-top: 140rpx;
		margin-top: 10rpx;

		.selectedCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 80rpx;

			.selectedCover {
				width: 100%;
				height: 368rpx;
				border-radius: 10rpx;
			}
		}
	}

	.selectedCoursesBox {
		position: relative;
		width: 100%;
		margin-top: 140rpx;

		.selectedCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 80rpx;

			.selectedCoursesItem {
				position: relative;
				width: 676rpx;
				margin-bottom: 45rpx;
				height: 510rpx;

				.endBtn {
					position: absolute;
					width: 128rpx;
					height: 50rpx;
					border-radius: 25rpx;
					background-color: #c8c8c8;
					top: 454rpx;
					right: 25rpx;
					font-size: 22rpx;
					color: #fff;
					line-height: 50rpx;
					text-align: center;


				}

				.learnBtn {
					position: absolute;
					width: 128rpx;
					height: 50rpx;
					border-radius: 25rpx;
					background-color: #f08329;
					top: 454rpx;
					right: 25rpx;
					font-size: 22rpx;
					color: #fff;
					line-height: 50rpx;
					text-align: center;
				}

				.selectedPrice {
					position: absolute;
					color: #f08329;
					top: 410rpx;
					right: 25rpx;
					font-size: 25rpx;
				}

				.selectedNumBox {
					position: absolute;
					width: 100%;
					height: 24rpx;
					left: 10rpx;
					top: 466rpx;
					display: flex;
					align-items: flex-start;

					.arrowIcon {
						width: 22rpx;
						height: 24rpx;
						margin-top: 5rpx;
					}

					.peopleLabel {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}

					.line1 {
						width: 1rpx;
						height: 20rpx;
						margin-left: 30rpx;
						background-color: #dcdcdc;
						margin-top: 5rpx;
					}

					.timeIcon {
						width: 21rpx;
						height: 21rpx;
						margin-left: 30rpx;
						margin-top: 5rpx;
					}

					.selectedTotal {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}
				}

				.selectedTitle {
					position: absolute;
					font-size: 25rpx;
					color: #141414;
					top: 410rpx;
					left: 10rpx;
					font-weight: 700;
				}

				.selectedType {
					position: absolute;
					width: 68rpx;
					height: 37rpx;
					left: 0;
					top: 0;
				}

				.selectedCover {
					width: 100%;
					height: 368rpx;
					border-radius: 10rpx;
				}
			}
		}

		.more {
			position: absolute;
			font-size: 20rpx;
			color: #8e8e8e;
			right: 42rpx;
			top: 62rpx;
			font-family: 'ar';
		}

		.selectedCoursesImg {
			width: 450rpx;
			height: 93rpx;
		}
	}

	.liveCoursesBox {
		position: relative;
		width: 100%;
		margin-top: 95rpx;

		.liveCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 80rpx;

			.liveCoursesItem {
				position: relative;
				width: 676rpx;
				margin-bottom: 45rpx;
				height: 177rpx;

				.liveTimeBox {
					position: absolute;
					top: 81rpx;
					left: 320rpx;
					display: flex;

					.liveTimeIcon {
						width: 21rpx;
						height: 21rpx;
					}

					.liveTime {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}
				}

				.liveTeacherBox {
					position: absolute;
					top: 47rpx;
					left: 320rpx;
					display: flex;

					.livePersonIcon {
						width: 21rpx;
						height: 20rpx;
					}

					.liveTeacherName {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}
				}

				.learnBtn {
					position: absolute;
					width: 128rpx;
					height: 50rpx;
					border-radius: 25rpx;
					background-color: #f08329;
					top: 127rpx;
					right: 0rpx;
					font-size: 22rpx;
					color: #fff;
					line-height: 50rpx;
					text-align: center;
				}

				.livePrice {
					position: absolute;
					color: #f08329;
					top: 140rpx;
					left: 320rpx;
					font-size: 25rpx;
				}

				.liveTitle {
					position: absolute;
					font-size: 25rpx;
					color: #141414;
					top: 0;
					left: 320rpx;
					font-weight: 700;
				}

				.liveType {
					position: absolute;
					width: 68rpx;
					height: 37rpx;
					left: 0;
					top: 0;
				}

				.liveCover {
					width: 271rpx;
					height: 177rpx;
					border-radius: 10rpx;
				}
			}
		}

		.more {
			position: absolute;
			font-size: 20rpx;
			color: #8e8e8e;
			right: 42rpx;
			top: 62rpx;
			font-family: 'ar';
		}

		.liveCoursesImg {
			width: 341rpx;
			height: 92rpx;
		}
	}


	.popularCoursesBox {
		position: relative;
		width: 100%;
		margin-top: 70rpx;

		.popularCoursesList {
			width: 676rpx;
			margin-left: 37rpx;
			margin-top: 80rpx;

			.popularCoursesItem {
				position: relative;
				width: 676rpx;
				margin-bottom: 45rpx;
				height: 177rpx;

				.endBtn {
					position: absolute;
					width: 128rpx;
					height: 50rpx;
					border-radius: 25rpx;
					background-color: #c8c8c8;
					top: 127rpx;
					right: 37rpx;
					font-size: 22rpx;
					color: #fff;
					line-height: 50rpx;
					text-align: center;
				}

				.learnBtn {
					position: absolute;
					width: 128rpx;
					height: 50rpx;
					border-radius: 25rpx;
					background-color: #f08329;
					top: 127rpx;
					right: 0rpx;
					font-size: 22rpx;
					color: #fff;
					line-height: 50rpx;
					text-align: center;
				}

				.popularPrice {
					position: absolute;
					color: #f08329;
					top: 140rpx;
					left: 320rpx;
					font-size: 25rpx;
				}

				.popularNumBox {
					position: absolute;
					width: 100%;
					height: 24rpx;
					left: 320rpx;
					top: 60rpx;
					display: flex;
					align-items: flex-start;

					.arrowIcon {
						width: 22rpx;
						height: 24rpx;
						margin-top: 5rpx;
					}

					.peopleLabel {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}

					.line1 {
						width: 1rpx;
						height: 20rpx;
						margin-left: 30rpx;
						background-color: #dcdcdc;
						margin-top: 5rpx;
					}

					.timeIcon {
						width: 21rpx;
						height: 21rpx;
						margin-left: 30rpx;
						margin-top: 5rpx;
					}

					.popularTotal {
						font-size: 19rpx;
						color: #8e8e8e;
						margin-left: 15rpx;
					}
				}

				.popularTitle {
					position: absolute;
					font-size: 25rpx;
					color: #141414;
					top: 0;
					left: 320rpx;
					font-weight: 700;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}

				.popularType {
					position: absolute;
					width: 68rpx;
					height: 37rpx;
					left: 0;
					top: 0;
				}

				.popularCover {
					width: 271rpx;
					height: 177rpx;
					border-radius: 10rpx;
				}
			}
		}

		.more {
			position: absolute;
			font-size: 20rpx;
			color: #8e8e8e;
			right: 42rpx;
			top: 62rpx;
			font-family: 'ar';
		}

		.popularCoursesImg {
			width: 450rpx;
			height: 93rpx;
		}
	}

	.healthvideoBox {
		position: relative;
		width: 100%;
		margin-top: 115rpx;
	}

	.tutorZoneBox {
		position: relative;
		width: 100%;
		margin-top: 115rpx;

		.tutorSwiperBox {
			width: 710rpx;
			height: 350rpx;
			margin-left: 40rpx;
			margin-top: 70rpx;

			.tutorSwiper-item {
				width: 290rpx !important;
				height: 290rpx !important;
				display: flex;
				flex-direction: column;

				.tutorTitle {
					width: 100%;
					font-size: 23rpx;
					color: #141414;
					margin-top: 35rpx;
					margin-left: 10rpx;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
					font-weight: 700;
				}

				.tutorLabel {
					width: 100%;
					font-size: 17rpx;
					color: #8e8e8e;
					margin-top: 15rpx;
					margin-left: 10rpx;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}

				.tutorItemImg {
					width: 270rpx !important;
					height: 270rpx !important;
					border-radius: 15rpx;
					position: relative;
					background-size: cover;
				}
			}
		}

		.more {
			position: absolute;
			font-size: 20rpx;
			color: #8e8e8e;
			right: 42rpx;
			top: 62rpx;
			font-family: 'ar';
		}

		.specialZoneImg {
			width: 346rpx;
			height: 94rpx;
		}
	}

	.specialZoneBox {
		position: relative;
		width: 100%;
		margin-top: 115rpx;

		.specialSwiperBox {
			width: 710rpx;
			height: 500rpx;
			margin-left: 40rpx;
			margin-top: 70rpx;

			.specialSwiper-item {
				width: 290rpx !important;
				height: 430rpx !important;
				display: flex;
				flex-direction: column;

				.specialTitle {
					width: 100%;
					font-size: 23rpx;
					color: #141414;
					margin-top: 35rpx;
					margin-left: 10rpx;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
					font-weight: 700;
				}

				.specialLabel {
					width: 100%;
					font-size: 17rpx;
					color: #8e8e8e;
					margin-top: 15rpx;
					margin-left: 10rpx;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}

				.specialItemImg {
					width: 270rpx !important;
					height: 328rpx !important;
					border-radius: 15rpx;
				}
			}
		}

		.more {
			position: absolute;
			font-size: 20rpx;
			color: #8e8e8e;
			right: 42rpx;
			top: 62rpx;
			font-family: 'ar';
		}

		.specialZoneImg {
			width: 346rpx;
			height: 94rpx;
		}
	}

	.menuBox {
		width: 710rpx;
		// height: 153rpx;
		margin-left: 20rpx;
		margin-top: 55rpx;
		display: flex;
		justify-content: space-around;

		.menuItem {
			width: 150rpx;
			height: 153rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-around;

			.menuIcon {
				width: 102rpx;
				height: 102rpx;
			}

			.menuLabel {
				width: 100%;
				font-size: 24rpx;
				text-align: center;
			}
		}
	}

	.swiperBox {
		width: 750rpx;
		height: 463rpx;

		.swiper-item,
		.swiperImg {
			width: 100%;
			height: 100%;
		}
	}

	.content {
		// position: fixed;
		// width: 100%;
		// height: 100%;
		// overflow-y: scroll;
		// overflow-x: hidden;
		background-color: #fff;

		/deep/.u-navbar-left {
			display: none !important;
		}

		.logo {
			width: 320rpx;
			height: 52rpx;
			margin-left: 40rpx;
		}
	}

	/deep/ page {
		width: 100%;
		height: 100%;
		overflow-y: scroll;
		background-color: #fff !important;
		padding-bottom: 0 !important;
	}
</style>